import Server from "../request";

import { hostURL } from "../utils/config";

const api = new Server(hostURL)
class GameApi {

    async list() {
        return api.get('/game')
    }

    async modify(param) {
        return api.post('/game/update', param)
    }

}

export default new GameApi;